import request from "@/utils/request";
import qs from "qs";

export function getOrganization() {
  return request({
    url: "api/v1/organizations",
    method: "get",
    basicDataServer: true,
  });
}

export function addOrganization(data) {
  let url = "api/v1/organizations";
  return request({
    url: url,
    method: "post",
    basicDataServer: true,
    data: data,
  });
}

export function updateOrganization(data) {
  let url = "api/v1/organizations";
  return request({
    url: url,
    method: "put",
    basicDataServer: true,
    data: data,
  });
}
